Properly compare "pci" token when groking serial port config
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 24 Nov 2011 15:45:19 +0000 (15:45 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 24 Nov 2011 15:45:19 +0000 (15:45 +0000)
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Committed-by: Keir Fraser <keir@xen.org>
xen/drivers/char/ns16550.c

index e09e30ddef02d5a15ad759d571e8a114665680ef..68c3649354abc2f5e1b29053b33fc96de60f36f0 100644 (file)
@@ -554,7 +554,7 @@ static void __init ns16550_parse_port_config(
     if ( *conf == ',' )
     {
         conf++;
-        if ( strncmp(conf, "pci", 5) == 0 )
+        if ( strncmp(conf, "pci", 3) == 0 )
         {
             if ( pci_uart_config(uart, 1/* skip AMT */, uart - ns16550_com) )
                 return;